package com.qf.fmall2203.shopcart.service;

import com.qf.fmall2203.orders.entity.Orders;
import com.qf.fmall2203.shopcart.entity.OrderVo;
import com.qf.fmall2203.shopcart.entity.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 购物车  服务类
 * </p>
 *
 * @author CM
 * @since 2023-02-16
 */
public interface IShoppingCartService extends IService<ShoppingCart> {


    /**
     * 显示购物车信息
     * @param userId
     * @return
     */
    List<ShoppingCart> shopCartList(Integer userId);

    List<ShoppingCart> account(Integer[] cids);

    HashMap<String, Object> addOrder(Orders orders, Integer[] cids) throws Exception;
}
